<?php
class RPC_Catalog {
	
	function getItems($limit) {
		
		$catalog = array();
		$catalog[] = array("productId"=>"1",  "name"=>"Nokia 6010", 		"price"=>"99.99");
		$catalog[] = array("productId"=>"2",  "name"=>"Nokia 3100 Blue", 	"price"=>"139");
		$catalog[] = array("productId"=>"3",  "name"=>"Nokia 3100 Pink", 	"price"=>"139");
		$catalog[] = array("productId"=>"4",  "name"=>"Nokia 3120", 		"price"=>"159.99");
		$catalog[] = array("productId"=>"5",  "name"=>"Nokia 3220", 		"price"=>"159.99");
		$catalog[] = array("productId"=>"6",  "name"=>"Nokia 3650", 		"price"=>"199.99");
		$catalog[] = array("productId"=>"7",  "name"=>"Nokia 6820", 		"price"=>"299.99");
		$catalog[] = array("productId"=>"8",  "name"=>"Nokia 6670", 		"price"=>"309.99");
		$catalog[] = array("productId"=>"9",  "name"=>"Nokia 6620", 		"price"=>"329.99");
		$catalog[] = array("productId"=>"10", "name"=>"Nokia 3230 Silver", 	"price"=>"369");
		$catalog[] = array("productId"=>"11", "name"=>"Nokia 3230 Bronze", 	"price"=>"369");
		$catalog[] = array("productId"=>"12", "name"=>"Nokia 6630", 		"price"=>"379");
		$catalog[] = array("productId"=>"13", "name"=>"Nokia 7610 black", 	"price"=>"399.99");
		$catalog[] = array("productId"=>"14", "name"=>"Nokia 7610 white", 	"price"=>"399.99");
		$catalog[] = array("productId"=>"15", "name"=>"Nokia 6680", 		"price"=>"509");
		$catalog[] = array("productId"=>"16", "name"=>"Nokia 9300", 		"price"=>"599");
		$catalog[] = array("productId"=>"17", "name"=>"Nokia 9500", 		"price"=>"799.99");
		$catalog[] = array("productId"=>"18", "name"=>"Nokia N90", 			"price"=>"999");
		
		$result = array();
		for($i = 0; $i < $limit; $i++) {
			$result[] = $catalog[$i];
		}
		return $result;
	}
}
?>